home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Mag HDD Backup
/
Amiga Mag HDD Backup.zip
/
Amiga Mag HDD Backup
/
Alexander.img.bin
/
Alexander.img
/
315 2 files Archive.sit
/
Any plain-text files
/
? Any plain-text file 75
< prev
next >
Wrap
Text File
|
1995-01-03
|
4KB
|
83 lines
ndTime = BarData.Stop.Bars * BarData.Measure ,
+ BarData.Stop.Clocks
(Note: In ARexx, a comma means "continued on the next line." If you can
fit each command on one line -- not possible on this magazine page -- then
you must omit the commas.)
Next, we prepare to scan the region. Just for fun, while the
script is working, we change the pointer to the "sleeping cloud" to
indicate work is being done.
23 MXPointer "SLEEPY"
24 Event. = "" /* Initialize Event variable */
25 BeginScan
Since we are adding pitch bend events, we can fill in some of
the Event variable fields that will remain constant: the event type,
the MIDI channel, and an event value (we choose +8192, which is zero
pitch bend).
26 Event.Type = "PBEN"
27 Event.Channel = midiChannel
28 Event.Num = 8192
Finally, it is time to add pitch bend events! To add them at the
right locations, we must calculate the Bar and Clock numbers where they
should be added. The bar number is obtained using integer division (the
"%" operator), and the clock number using the "mod" or "remainder" function
(the "//" operator):
29 DO WHILE currentTime <= endTime
30 Event.Start.Bars = currentTime % BarData.Measure
31 Event.Start.Clocks = currentTime // BarData.Measure
32 AddEvent
33 currentTime = currentTime + spacing
34 END
When the loop is done, clean up and exit.
35 EndScan
36 MXPointer "NORMAL"
Save lines 1-36 in a file called "PitchBend.mxe". To use this
script, first mark a region or select some events. Second, run the
PitchBend.mxe script. Third, use the Sculpt Tool to shape the pitch bend
events the way you want them. Enjoy!
Note: RexxEdit has a bug concerning marked regions. If a region
appears to be marked, but you keep getting the requestor "No region is
marked/selected," try marking the region again or using the Select tool
instead of Mark. (See "TECH TALK" below for more information.)
Another note: the above assumes you are using "relative time"
sequences, not "absolute time" sequences. If you use absolute time
sequences, then time is measured in quarter frames instead of clocks;
see the manual for more information.
COMMUNICATING WITH OTHER PROGRAMS
Using the ARexx "ADDRESS" command, Music-X scripts can talk to
other ARexx-compatible products such as Deluxe Music 2.0, Bars and Pipes
Professional, One Stop Music Shop, and even non-music products. How about
using SuperBase Professional to store your Music-X sequences? VLT for
uploading and downloading sequences? AmigaVision for multimedia? The
possibilities are numerous and exciting.
Communicating with another program has 4 steps.
1. Find out the ARexx port names of the other program, by
consulting its documentation.
2. Store Music-X's port name in a variable for safekeeping,
using the Address() command. (See "TECH TALK", below,
if you are interested in the reason.)
3. Use the Show("P") command to make sure that the other programs
are running. If not, then your script run them, using the
"WaitForPort" command to waiII* Æ@ Ç P8$
äBaP╕d6êDbQ8ñV-îFcQ╕Σv=ÉHdR9$ûM'öJeR╣d╢]/ÿLfS9ñ╓m7£NgS╣Σ÷}?áPhT:%ìGñRiT║e6¥O¿TjU:ÑV¡W¼VkU║σv╜_░XlV;%û═g┤ZmV╗e╢▌o╕\nW;Ñ╓φw╝^oW╗┤Ç P8$
äBaP╕d6êDbQ8ñV-îFcQ╕Σv=ÉHdR9$ûM'öJeR╣d╢]/ÿLfS9ñ╓m7£NgS╣Σ÷}?áPhT:%ìGñRiT║e6¥O¿TjU:ÑV¡W¼VkU║σv╜_░XlV;%û═g┤ZmV╗e╢▌o╕\nW;Ñ╓φw╝^oW╗┤Ç P8$
äBaP╕d6êDbQ8ñV-îFcQ╕Σv=ÉHdR9$ûM'öJeR╣d╢]/ÿLfS9ñ╓m7£NgS╣Σ÷}?áPhT:%ìGñRiT║e6¥O¿TjU:ÑV¡W¼VkU║σv╜_░XlV;%û═g┤ZmV╗e╢▌o╕\nW;Ñ╓φw╝^oW╗┤Ç P8$
äBaP╕d6êDbQ8ñV-îFcQ╕Σv=ÉHdR9$ûM'öJeR╣d╢]/ÿLfS9ñ╓m7£NgS╣Σ÷}?áPhT:%